package uml.model;

import java.util.Collection;

/**
 * 
 * @author Neil Obetz
 *
 */


/**
 * ClassComponent_Model 
 *
 */
public class ClassComponent_Model
{
	 ClassDataStructure_Model m_classDataStructure;
	
	/**
	 * Creates an empty <tt>ClassComponent_Model</tt> object
	 */
	public ClassComponent_Model ()
	{
		m_classDataStructure = new ClassDataStructure_Model ();
	}
	
	/**
	 * Creates a new <tt>ClassComponentModel</tt> object and 
	 * initializes its data structure with the specified 
	 * collection parameter.
	 * @param collection
	 */
	public ClassComponent_Model (Collection collection)
	{
		m_classDataStructure = new ClassDataStructure_Model (collection);
	}
	
	/**
	 * Takes as input the contents of a class 
	 * object as a <tt>String</tt>. This data is added
	 * to the class object's class data structure. 
	 * @param data
	 */
	public void add (String data)
	{
		m_classDataStructure.add (data);
	}
	
	/**
	 * Returns the class data structure
	 * @return Collection
	 */
	public ClassDataStructure_Model getData ()
	{
		return m_classDataStructure;
	}	
	
}
